//
//  WPCLeftSideBarCollectionFooterView.swift
//  Wallpaper.co
//
//  Created by zhou_yuepeng on 2017/9/26.
//  Copyright © 2017年 www.dahuatech.com. All rights reserved.
//

import UIKit

class WPCLeftSideBarCollectionFooterView: UICollectionReusableView {
    private var line:UILabel?;
    
    override init(frame: CGRect) {
        super.init(frame: frame);
        
        line = UILabel();
        self.addSubview(line!);
        
        self.backgroundColor = UIColor.init(red: 230/255, green: 230/255, blue: 230/255, alpha: 1);
        line?.backgroundColor = UIColor.white;
        
        layoutWithMasonry();
    }
    
    required init?(coder aDecoder: NSCoder) {
        fatalError("init(coder:) has not been implemented")
    }
    
    
    func layoutWithMasonry() {
        line!.makeConstraints({ (make) in
            make!.size.equalTo()(CGSize(width: self.bounds.size.width * 0.8, height: 1));
            make!.center.equalTo()(self);
        })
    }
}
